#include "SList02.h"

void test01()
{
	SLNode* plist = NULL;
	SLpushfront(&plist, 1);
	SLpushfront(&plist, 2);
	SLpushfront(&plist, 3);
	SLpushfront(&plist, 4);
	SLpushfront(&plist, 1);

	SLprint(plist);

}

void test02()
{
	SLNode* plist = NULL;
	SLpushback(&plist, 1);
	SLpushback(&plist, 2);
	SLpushback(&plist, 3);
	SLpushback(&plist, 3);


	SLNode* pos = SLfind(plist, 3);
	if (pos)
	{
		SLinsertAfter(&plist, pos, 100);
		SLinsertBefor(&plist, pos, 99);
	}

	SLprint(plist);
}


int main()
{
	test02();
	return 0;
}